- Parameters
-
| pin_en | - unsigned integer, bit position indicates the pin is enabled. More than one bit can be set to enable more than one pin at a time. |
| rise_fall | - 0x00 = External input disabled as wakeup 0x01 - External input enabled as rising edge detection 0x02 - External input enabled as falling edge detection 0x03 - External input enablge as any edge detection |
| module_en | - unsigned char, bit position indicates the module is enabled. More than one bit can be set to enabled more than one module |
for example: if bit 0 and 1 need to be enabled as rising edge detect call this routine with pin_en = 0x0003 and rise_fall = 0x02
Note: to set up one set of pins for rising and another for falling, 2 calls to this function are required, 1st for rising then the second for falling.